package model;

/**
 * 用户实体类
 */
public class User {
    private int id;
    private String account;
    private String password;
    private String name;
    private String idCardNo;
    private String mobileNo;
    private String bankCardNo;
    private boolean isAdmin;
    private int age;

    public User() {}

    public User(String account, String password, String name, String idCardNo,
                String mobileNo, String bankCardNo, boolean isAdmin, int age) {
        this.account = account;
        this.password = password;
        this.name = name;
        this.idCardNo = idCardNo;
        this.mobileNo = mobileNo;
        this.bankCardNo = bankCardNo;
        this.isAdmin = isAdmin;
        this.age = age;
    }

    public int getId() { return id; }
    public void setId(int id) { this.id = id; }

    public String getAccount() { return account; }
    public void setAccount(String account) { this.account = account; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getIdCardNo() { return idCardNo; }
    public void setIdCardNo(String idCardNo) { this.idCardNo = idCardNo; }

    public String getMobileNo() { return mobileNo; }
    public void setMobileNo(String mobileNo) { this.mobileNo = mobileNo; }

    public String getBankCardNo() { return bankCardNo; }
    public void setBankCardNo(String bankCardNo) { this.bankCardNo = bankCardNo; }


    public boolean isAdmin() { return isAdmin; }
    public void setAdmin(boolean admin) { isAdmin = admin; }

    public int getAge() { return age; }
    public void setAge(int age) { this.age = age; }
}